package com.gscitysfy.cus.drain.modules.warning.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author user
 * @since 2022-10-22 15:33:42
 */
@Getter
@Setter
@TableName("drain_signal")
public class DrainSignal implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId
    private Long cmKid;

    /**
     * 预报时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date warningSignalTime;

    /**
     * 灾害预报类型台风、暴雨、暴雪、寒潮、大风、沙尘暴、高温、干旱、雷电、冰雹、霜冻、大雾、霾、道路结冰
     */
    private String warningSignalType;

    /**
     * 灾害等级
     */
    private String warningSignalLevel;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "cm_addtime",fill = FieldFill.INSERT)
    private Date cmAddtime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "cm_uptime", fill = FieldFill.UPDATE)
    private Date cmUptime;

    private Boolean cmUsable;

    /**
     * 预报内容
     */
    private String warningSignalContent;

    /**
     * 城市
     */
    private String warningSignalCity;

    /**
     * 区县
     */
    private String warningSignalCounty;

    /**
     * 发布者
     */
    private String warningSignalAlertId;
    @TableField(exist = false)
    private String warningSignalTimeStr;
    @TableField(exist = false)
    private String warningSignalTimeEnd;
}
